package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.GoodsBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetCollectionGoodsListIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetCollectionGoodsListModel extends RetrofitBaseModel implements GetCollectionGoodsListIface<GoodsBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetCollectionGoodsListModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getCollectionGoodsList(String userid, ListListener<GoodsBean> listListener) {
        Call<List<GoodsBean>> call = allService.getCollectionGoodsList(userid);
        callenqueueList(call,listListener);

    }
}
